package cn.lsc.feign;

import cn.lsc.domain.Login;
import cn.lsc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/login")
@FeignClient(value = "service-uaa",fallbackFactory = UaaFallbackFactory.class)
public interface uaaFeignService {



    @RequestMapping(value="/save",method= RequestMethod.POST)
     JSONResult saveOrUpdate(@RequestBody Login login);

}
